IF( WIN32 )
    SET(TARGET_DEFAULT_PREFIX "example_")
ELSE( WIN32 )
    SET(TARGET_DEFAULT_PREFIX "")
ENDIF( WIN32 )

SET(TARGET_DEFAULT_LABEL_PREFIX "Examples")



IF( OOGAME_USE_PSOUND )
    SET(TARGET_COMMON_LIBRARIES
        OpenThreads
        osg
        osgODE
        osgODEUtil
        ooGame
        pSound
        osgDB
        osgUtil
        osgGA
        osgViewer
    )
ELSE( OOGAME_USE_PSOUND )
    SET(TARGET_COMMON_LIBRARIES
        OpenThreads
        osg
        osgODE
        osgODEUtil
        ooGame
        osgDB
        osgUtil
        osgGA
        osgViewer
    )
END( OOGAME_USE_PSOUND )


IF( WIN32 )
    ADD_DEFINITIONS( /wd4250 )
ENDIF( WIN32 )

ADD_DEFINITIONS( -DOOGAME_DATA_PATH="${CMAKE_SOURCE_DIR}/data" )




ADD_SUBDIRECTORY( oogamecollisionsensor )
ADD_SUBDIRECTORY( oogamehello )
ADD_SUBDIRECTORY( oogamemousesensor )
